package com.xinqi.modules.course.textbook.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.course.textbook.dto.req.CourseCloudTextbookContentQueryDTO;
import com.xinqi.modules.course.textbook.dto.rsp.CourseCloudTextbookContentResultDTO;
import com.xinqi.modules.course.textbook.domain.CourseCloudTextbookContentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 课程模块云课本课堂内容数据层
 *
 * @author: wenjie
 * @date: 2023/05/30
 */
@Mapper
public interface CourseCloudTextbookContentMapper extends SuperMapper<CourseCloudTextbookContentEntity> {
    Page<CourseCloudTextbookContentResultDTO> findPage(Page<Object> page, @Param("dto") CourseCloudTextbookContentQueryDTO query);

    List<CourseCloudTextbookContentResultDTO> findList(@Param("dto") CourseCloudTextbookContentQueryDTO query);
}
